package org.tsp.android.SensorExample;

import org.tsp.android.MapExample.MyMapActivity;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;

public class MyLocationListener implements LocationListener {

	public MyMapActivity act = null;
	
	@Override
	public void onLocationChanged(Location arg0) {

		String text = "latitude :"+arg0.getLatitude()+" longitude :"+arg0.getLongitude();
		System.out.println(text);
		act.onLocationChanged((int)(arg0.getLatitude()*1e6), (int)(arg0.getLongitude()*1e6));
	}

	@Override
	public void onProviderDisabled(String provider) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onProviderEnabled(String provider) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onStatusChanged(String provider, int status, Bundle extras) {
		// TODO Auto-generated method stub
		
	}

}
